package com.indexingsystem.boss.entity;

import java.io.Serializable;

/**
 * dh_order_resource_products_detail
 * @author 
 */
public class OrderResourceProductsDetail implements Serializable {
    private String orderResourceProductsDetailId;

    private String orderId;

    private String orderProductId;

    private String productId;

    private String productName;

    /**
     * 0：资源分类  1:资源
     */
    private Integer productType;

    private String resTypeId;

    private String resTable;

    private String resTypeName;

    private String publishdate;

    private Integer orderType;

    private String publishyear;

    private String publishmonth;

    private String institutionsId;

    private String upInstitutionsId;

    private String resCategoryId;

    private String resCategoryName;

    private String upResCategoryId;

    private String alias;

    private String productAbbreviation;

    private String createTime;

    private String productPrice;

    private Integer unitCount;

    private static final long serialVersionUID = 1L;

    public String getOrderResourceProductsDetailId() {
        return orderResourceProductsDetailId;
    }

    public void setOrderResourceProductsDetailId(String orderResourceProductsDetailId) {
        this.orderResourceProductsDetailId = orderResourceProductsDetailId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderProductId() {
        return orderProductId;
    }

    public void setOrderProductId(String orderProductId) {
        this.orderProductId = orderProductId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }

    public String getResTypeId() {
        return resTypeId;
    }

    public void setResTypeId(String resTypeId) {
        this.resTypeId = resTypeId;
    }

    public String getResTable() {
        return resTable;
    }

    public void setResTable(String resTable) {
        this.resTable = resTable;
    }

    public String getResTypeName() {
        return resTypeName;
    }

    public void setResTypeName(String resTypeName) {
        this.resTypeName = resTypeName;
    }

    public String getPublishdate() {
        return publishdate;
    }

    public void setPublishdate(String publishdate) {
        this.publishdate = publishdate;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public String getPublishyear() {
        return publishyear;
    }

    public void setPublishyear(String publishyear) {
        this.publishyear = publishyear;
    }

    public String getPublishmonth() {
        return publishmonth;
    }

    public void setPublishmonth(String publishmonth) {
        this.publishmonth = publishmonth;
    }

    public String getInstitutionsId() {
        return institutionsId;
    }

    public void setInstitutionsId(String institutionsId) {
        this.institutionsId = institutionsId;
    }

    public String getUpInstitutionsId() {
        return upInstitutionsId;
    }

    public void setUpInstitutionsId(String upInstitutionsId) {
        this.upInstitutionsId = upInstitutionsId;
    }

    public String getResCategoryId() {
        return resCategoryId;
    }

    public void setResCategoryId(String resCategoryId) {
        this.resCategoryId = resCategoryId;
    }

    public String getResCategoryName() {
        return resCategoryName;
    }

    public void setResCategoryName(String resCategoryName) {
        this.resCategoryName = resCategoryName;
    }

    public String getUpResCategoryId() {
        return upResCategoryId;
    }

    public void setUpResCategoryId(String upResCategoryId) {
        this.upResCategoryId = upResCategoryId;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getProductAbbreviation() {
        return productAbbreviation;
    }

    public void setProductAbbreviation(String productAbbreviation) {
        this.productAbbreviation = productAbbreviation;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(String productPrice) {
        this.productPrice = productPrice;
    }

    public Integer getUnitCount() {
        return unitCount;
    }

    public void setUnitCount(Integer unitCount) {
        this.unitCount = unitCount;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderResourceProductsDetail other = (OrderResourceProductsDetail) that;
        return (this.getOrderResourceProductsDetailId() == null ? other.getOrderResourceProductsDetailId() == null : this.getOrderResourceProductsDetailId().equals(other.getOrderResourceProductsDetailId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getOrderProductId() == null ? other.getOrderProductId() == null : this.getOrderProductId().equals(other.getOrderProductId()))
            && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
            && (this.getProductName() == null ? other.getProductName() == null : this.getProductName().equals(other.getProductName()))
            && (this.getProductType() == null ? other.getProductType() == null : this.getProductType().equals(other.getProductType()))
            && (this.getResTypeId() == null ? other.getResTypeId() == null : this.getResTypeId().equals(other.getResTypeId()))
            && (this.getResTable() == null ? other.getResTable() == null : this.getResTable().equals(other.getResTable()))
            && (this.getResTypeName() == null ? other.getResTypeName() == null : this.getResTypeName().equals(other.getResTypeName()))
            && (this.getPublishdate() == null ? other.getPublishdate() == null : this.getPublishdate().equals(other.getPublishdate()))
            && (this.getOrderType() == null ? other.getOrderType() == null : this.getOrderType().equals(other.getOrderType()))
            && (this.getPublishyear() == null ? other.getPublishyear() == null : this.getPublishyear().equals(other.getPublishyear()))
            && (this.getPublishmonth() == null ? other.getPublishmonth() == null : this.getPublishmonth().equals(other.getPublishmonth()))
            && (this.getInstitutionsId() == null ? other.getInstitutionsId() == null : this.getInstitutionsId().equals(other.getInstitutionsId()))
            && (this.getUpInstitutionsId() == null ? other.getUpInstitutionsId() == null : this.getUpInstitutionsId().equals(other.getUpInstitutionsId()))
            && (this.getResCategoryId() == null ? other.getResCategoryId() == null : this.getResCategoryId().equals(other.getResCategoryId()))
            && (this.getResCategoryName() == null ? other.getResCategoryName() == null : this.getResCategoryName().equals(other.getResCategoryName()))
            && (this.getUpResCategoryId() == null ? other.getUpResCategoryId() == null : this.getUpResCategoryId().equals(other.getUpResCategoryId()))
            && (this.getAlias() == null ? other.getAlias() == null : this.getAlias().equals(other.getAlias()))
            && (this.getProductAbbreviation() == null ? other.getProductAbbreviation() == null : this.getProductAbbreviation().equals(other.getProductAbbreviation()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getProductPrice() == null ? other.getProductPrice() == null : this.getProductPrice().equals(other.getProductPrice()))
            && (this.getUnitCount() == null ? other.getUnitCount() == null : this.getUnitCount().equals(other.getUnitCount()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderResourceProductsDetailId() == null) ? 0 : getOrderResourceProductsDetailId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getOrderProductId() == null) ? 0 : getOrderProductId().hashCode());
        result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
        result = prime * result + ((getProductName() == null) ? 0 : getProductName().hashCode());
        result = prime * result + ((getProductType() == null) ? 0 : getProductType().hashCode());
        result = prime * result + ((getResTypeId() == null) ? 0 : getResTypeId().hashCode());
        result = prime * result + ((getResTable() == null) ? 0 : getResTable().hashCode());
        result = prime * result + ((getResTypeName() == null) ? 0 : getResTypeName().hashCode());
        result = prime * result + ((getPublishdate() == null) ? 0 : getPublishdate().hashCode());
        result = prime * result + ((getOrderType() == null) ? 0 : getOrderType().hashCode());
        result = prime * result + ((getPublishyear() == null) ? 0 : getPublishyear().hashCode());
        result = prime * result + ((getPublishmonth() == null) ? 0 : getPublishmonth().hashCode());
        result = prime * result + ((getInstitutionsId() == null) ? 0 : getInstitutionsId().hashCode());
        result = prime * result + ((getUpInstitutionsId() == null) ? 0 : getUpInstitutionsId().hashCode());
        result = prime * result + ((getResCategoryId() == null) ? 0 : getResCategoryId().hashCode());
        result = prime * result + ((getResCategoryName() == null) ? 0 : getResCategoryName().hashCode());
        result = prime * result + ((getUpResCategoryId() == null) ? 0 : getUpResCategoryId().hashCode());
        result = prime * result + ((getAlias() == null) ? 0 : getAlias().hashCode());
        result = prime * result + ((getProductAbbreviation() == null) ? 0 : getProductAbbreviation().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getProductPrice() == null) ? 0 : getProductPrice().hashCode());
        result = prime * result + ((getUnitCount() == null) ? 0 : getUnitCount().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderResourceProductsDetailId=").append(orderResourceProductsDetailId);
        sb.append(", orderId=").append(orderId);
        sb.append(", orderProductId=").append(orderProductId);
        sb.append(", productId=").append(productId);
        sb.append(", productName=").append(productName);
        sb.append(", productType=").append(productType);
        sb.append(", resTypeId=").append(resTypeId);
        sb.append(", resTable=").append(resTable);
        sb.append(", resTypeName=").append(resTypeName);
        sb.append(", publishdate=").append(publishdate);
        sb.append(", orderType=").append(orderType);
        sb.append(", publishyear=").append(publishyear);
        sb.append(", publishmonth=").append(publishmonth);
        sb.append(", institutionsId=").append(institutionsId);
        sb.append(", upInstitutionsId=").append(upInstitutionsId);
        sb.append(", resCategoryId=").append(resCategoryId);
        sb.append(", resCategoryName=").append(resCategoryName);
        sb.append(", upResCategoryId=").append(upResCategoryId);
        sb.append(", alias=").append(alias);
        sb.append(", productAbbreviation=").append(productAbbreviation);
        sb.append(", createTime=").append(createTime);
        sb.append(", productPrice=").append(productPrice);
        sb.append(", unitCount=").append(unitCount);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
    
}